import request from '@/utils/request'

/**
 * 登录
 * @returns Promise
 */
export const userLogin = (params) => {
  return request({
    url: '/login',
    method: 'post',
    data: params
  })
}

/**
 * 获取图像验证码
 * @returns Promise
 */
export const image = () => {
  return request({
    url: '/captchaImage'
  })
}

/**
 * 登出
 * @returns Promise
 */
export const logout = () => {
  return request({
    url: '/logout'
  })
}
